<?php 
/**
* 注册类
*/
class LoginController extends Controller
{
	
	public function index()
	{
	 	$this->display();
	}

	public function checkdata()
	{
		echo "我是登录检测功能";

	}

	public function getUser()
	{
		
		// $sql ="select * from stu order by age limit 10";

		// db('stu')->where(['sid'=>'15'])->del();
		// 
		// 
		$model = new StuModel();

		$userList = $model->getTenStu();

		// 分配变量
		$this->assign('title',"用户列表");
		$this->assign('userList',$userList);
		$this->assign('name',"学并思");
		$this->assign('age',18);
		$this->display();

	}
}

 ?>